package net.coding.bamboo.wex.mq.handler;

import com.weihui.finance.fundmanage.domain.model.LoanResultMessage;
import com.weihui.mq.handler.notify.AbstractNotifyMessageHandler;
import net.coding.bamboo.wex.mq.processor.LoanResultMessageService;

/**
 * @author : zenghua
 * @version : v0.1 SendMessageHandler.java
 * @since : 2017/7/13 19:45
 */
public class ConsumerMessageHandler extends AbstractNotifyMessageHandler {
    private LoanResultMessageService loanResultMessageService;

    @Override
    public void handleMessage(Object request) throws Exception {
        LoanResultMessage loanResultMessage = (LoanResultMessage) request;
        loanResultMessageService.process(loanResultMessage);
    }

    public void setLoanResultMessageService(LoanResultMessageService loanResultMessageService) {
        this.loanResultMessageService = loanResultMessageService;
    }
}
